@import "normalize";
@import "tomorrow";

body{
  font-family: 'DejaVu Sans', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  background-color: #ffffff;
  color: #34495E;
}

.container{
  a{
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid rgba(52, 73, 94, 0.5);
    transition: 0.2s;
    &:hover{
      border-color: rgba(52, 73, 94, 1);
    }
  }
}

h1{
  text-align: center;
}

h2{
  margin-top: 50px;
  &:first-child{
    margin-top: 20px;
  }
}

p{
  line-height: 1.3;
}

div.description{
  position: relative;
  top: -10px;
  text-align: center;
  color: rgba(52, 73, 94, 0.6);
  line-height: 1.3;
}

.svg-container {
  width: 100%;
  height: 0;
  padding-top: 43%;
  position: relative;
  margin: 0 auto;
}

svg {
  position: absolute;
  top: 0;
  left: 0;
}

.demo-code{
  text-align: center;
  color: #4D4D4C;
  margin: 10px 0 0;
  .code-snippet {
    display: inline-block;
    padding: 20px 30px;
    background-color: rgba(239, 236, 244, 1);
    select {
      border: none;
      color: darken(#2980b9, 10%);
      background-color: darken(rgba(239, 236, 244, 1), 5%);
      text-align: center;
      -webkit-appearance: none;
      -moz-appearance: none;
      text-indent: 1px;
      text-overflow: '';
      padding-right: 7px;
      cursor: pointer;
      option{
        border: none;
      }
    }
  }
}

.selectable{
  position: relative;
  display: inline-block;
  select {
    &:hover {
      + .tooltip {
        opacity: 1;
      }
    }
  }
  .tooltip {
    position: absolute;
    bottom: 160%;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    text-emphasis-color: transparent;
    font-size: 13px;
    padding: 2px 5px;
    border-radius: 3px;
    white-space: nowrap;
    background-color: #707F8E;
    cursor: default;
    pointer-events: none;
    opacity: 0;
    transition: 0.2s;
    &::selection{
      background: transparent;
    }
    &:before{
      position: absolute;
      content: '';
      width: 10px;
      height: 10px;
      bottom: -2px;
      left: 50%;
      transform: translateX(-50%) rotate(45deg);
      background-color: #707F8E;
      z-index: -1;
    }
  }
}

button, a.documentation-link{
  display: block;
  background-color: #2980b9;
  border: none;
  outline: none;
  color: #ffffff;
  padding: 12px 0;
  width: 300px;
  max-width: 100%;
  text-align: center;
  margin: 20px auto;
  border-radius: 3px;
  cursor: pointer;
  transition: 0.3s;
  &.bordered{
    padding: 10px 0;
    background-color: transparent;
    border: 2px solid #3498db;
    color: #34495E;
    opacity: 0.8;
  }
  &:hover{
    color: #ffffff;
    background-color: #3498db;
    border-color: transparent;
    opacity: 1;
  }
}

code {
  &.inline-code {
    padding: 2px 5px;
    background-color: rgba(239, 236, 244, 1);
  }
  &.hljs{
    padding: 1.5em;
    background-color: rgba(239, 236, 244, 1);
  }
}

footer{
  font-size: 14px;
  text-align: center;
  padding: 15px 0 14px;
  margin-top: 20px;
  color: rgba(52, 73, 94, 0.5);
  background-color: rgba(52, 73, 94, 0.05);
}

@import "media";